if($_SERVER['HTTP_HOST']=='localhost') { $db_name='ugive'; $user="root"; $pass="welcometo"; $servername = "localhost"; } else { $servername = "localhost"; $db_name='ugive'; $user="root"; $pass="welcometo"; } $connection = new mysqli($servername, $user, $pass, $db_name); // $db = @mysql_select_db($db_name,$connection) or die(mysql_error()); $base_url="https://ugive2.com/dashboard/"; /* * if domain name change then you must change this variable for image upload and resize popup also * Garun Mishra 24/7/2012 */ if($_SERVER['HTTP_HOST'] != 'localhost') { $configp= 'https://ugive2.com/dashboard/'; } ?>